#ifndef POLICYKITHELPER_H
#define POLICYKITHELPER_H

#include <polkit-qt5-1/PolkitQt1/Authority>
using namespace PolkitQt1;

class PolicyKitHelper
{
public:

    inline static PolicyKitHelper* instance(){
            static PolicyKitHelper instance;
            return &instance;
            }
    //权限检查
    bool checkAuthorization(const QString& actionId, qint64 applicationPid);
private:
    PolicyKitHelper();
    ~PolicyKitHelper();
    //Q_DISABLE_COPY(PolicyKitHelper)
};

#endif // POLICYKITHELPER_H
